﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;



namespace IndexMarkSilverlightClient.IndexMarkServiceReference
{
    public partial class IndexRow
    {
        //public string SectionsIndexToString()
        //{
        //    String S = "";

        //    foreach (SectionIndex SI in this.SectionsIndex)
        //    {
        //        S += SI.Index + "; ";
        //    }

        //    return S;
        //}
        public int OrderField { get; set; }
        public bool Check { get; set; }

        public double R3 { get { return SectionIndex[2].Index; } }
        public double R4 { get { return SectionIndex[3].Index; } }

        static double i1 = 450, i2 = 100;
        public int Kat
        {
            get
            {
                var r3 = R3;
                var r4 = R4;
                //MessageBox.Show(r3 + " - " + r4);
                if (r3 < i2 && r4 < i2) return 3;
                if (r3 < i1 && r4 < i1) return 2;
                return 1;
            }
        }
    }
}